package com.yyplatform.admin.platform.role.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.yyplatform.admin.platform.role.model.entity.SysUserRoleEntity;

/**
 * Created on 2024-09-14
 */
public interface SysUserRoleRepository extends JpaRepository<SysUserRoleEntity, Long>,
        JpaSpecificationExecutor<SysUserRoleEntity> {
    List<SysUserRoleEntity> findByUserId(Long userId);

    List<SysUserRoleEntity> findByRoleId(Long id);

}
